package com.dragon.backstage.domain.vo.userOnline;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

/**
 * 用户在线模块-用户在线列表VO
 *
 * @author dragon
 * @version 1.0
 * @date 2024/10/19 16:21
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@Schema(title = "用户在线模块-用户在线列表VO")
public class UserOnlineVo {

    /**
     * 会话编号
     */
    @Schema(title = "会话编号")
    private String tokenId;

    /**
     * 登录账号
     */
    @Schema(title = "登录账号")
    private String account;

    /**
     * 登录IP
     */
    @Schema(title = "登录IP")
    private String ipAddr;

    /**
     * 登录地点
     */
    @Schema(title = "登录地点")
    private String loginLocation;

    /**
     * 登录设备
     */
    @Schema(title = "登录设备")
    private String loginDevice;

    /**
     * 浏览器
     */
    @Schema(title = "浏览器")
    private String browser;

    /**
     * 操作系统
     */
    @Schema(title = "操作系统")
    private String os;

    /**
     * 登录时间
     */
    @Schema(title = "登录时间")
    private LocalDateTime loginTime;


    public static final String TOKEN_ID = "tokenId";

    public static final String ACCOUNT = "account";

    public static final String IP_ADDR = "ipAddr";

    public static final String LOGIN_LOCATION = "loginLocation";

    public static final String LOGIN_DEVICE = "loginDevice";

    public static final String BROWSER = "browser";

    public static final String OS = "os";

    public static final String LOGIN_TIME = "loginTime";

}
